package org.example.sunrise.converters;

import org.example.sunrise.domains.EmploymentRequest;
import org.example.sunrise.views.models.EmploymentRequestViewModel;

public class EmploymentRequestConverter {
    public EmploymentRequest toEmploymentRequest(EmploymentRequestViewModel viewModel) {
        return new EmploymentRequest(
            viewModel.getName(),
            viewModel.getPosition(),
            viewModel.getAnnualSalary()
        );
    }
}
